<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Bfc</title>
</head>
<style>
    .container{
        background: #f1f1f1;
    }
    .left{
        float: left;
    }
    .bfc{
        overflow: hidden;
        /*display: flex;*/
    }
</style>
<body>
<div class="container bfc">
    <img class="left" src="1.jpg" alt="">
    <p class="bfc">文字。。。。</p>
</div>
</body>
</html>